package com.gxh.text.utiles;

import com.alibaba.fastjson.JSONObject;

public class JsonUtil {
    public static JSONObject getJson(int ret, Object result, String msg){
        JSONObject json = new JSONObject();
        json.put("ret", ret);  //0失败   1成功
        json.put("data", result);	//返回数据
        json.put("msg", msg);  //返回消息
        return json;
    }
}
